<?php

use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;

/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/

// php artisan inspire
// 结果是：
// People find pleasure in different ways. I find it in keeping my mind clear. - Marcus Aurelius
// 而且每次还不一样：
// When there is no desire, all things are at peace. - Laozi
// An unexamined life is not worth living. - Socrates
//
// php artisan list
// 结果很多，其中一项是：
// inspire              Display an inspiring quote
Artisan::command('inspire', function () {
    $this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');


Artisan::command('helloworld', function () {
    $this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');
